package com.tender.controller;

import cn.hutool.core.date.DateTime;
import cn.hutool.json.JSONUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;
import java.util.UUID;

/**
 * 网关测试 后台服务对应的 Controller
 */
@RestController
@RequestMapping("/backend")
public class BackendController {

    @GetMapping("/service")
    public String backendService() {
        return "===> data from backend server, 当前时间为 = " + DateTime.now().toString() + " 序列号 = " + UUID.randomUUID();
    }

}
